﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CcMath
{
    [Serializable]
    /// <summary>
    /// 二维点值模型-Float实数模型
    /// 可用于二维取样、3维方向图等数据
    /// </summary>
    public class PointValueF
    {
        /// <summary>
        /// 直角坐标的x,球坐标的phi,单位:mm or deg
        /// </summary>
        public float XorPhi { get; set; }
        /// <summary>
        /// 直角坐标的y，球坐标的sita,单位:mm or deg
        /// </summary>
        public float YorSita { get; set; }
        public float Value { get; set; }
        public PointValueF() { }
        /// <summary>
        /// 内部将double转换成float
        /// </summary>
        /// <param name="xOrPhi">直角坐标的x,球坐标的phi,单位:mm or deg</param>
        /// <param name="yOrSita">直角坐标的y,球坐标的sita,单位:mm or deg</param>
        /// <param name="value"></param>
        public PointValueF(double xOrPhi, double yOrSita, double value)
        {
            XorPhi = (float)xOrPhi;
            YorSita = (float)yOrSita;
            Value = (float)value;

        }
    }
}
